﻿<UserControl x:Class="MachineQA.MachineTab"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="1200" d:DesignWidth="1240" Loaded="UserControl_Loaded">
    <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1240" Height="1200">
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top">
            <GroupBox Header="Machines" Width="500" Height="530">
                <StackPanel Orientation="Vertical">
                    <ListBox Name="MachinesListbox" Height="400" VerticalAlignment="Top" ItemsSource="{Binding}"/>
                    <Label Name="NewLabel" Content="New item details:"/>
                    <StackPanel Orientation="Horizontal">
                        <Label Name="MachineNameLabel" Content="Machine name:" />
                        <TextBox Name="NewMachineNameBox" Width="200" TextChanged="NewMachineNameBox_TextChanged" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <Label Name="LocationLabel" Content="Location:" />
                        <ComboBox Name="LocationCombobox" Width="200"  ItemsSource="{Binding}" SelectionChanged="LocationCombobox_SelectionChanged" />
                    </StackPanel>
                    <Button Name="MachineSaveButton" Content="Create Machine" IsEnabled="false" Click="MachineSaveButton_Click" Height="40"  Width="100" HorizontalAlignment="Right" HorizontalContentAlignment="Right"/>
                </StackPanel>
            </GroupBox>
        </StackPanel>
    </StackPanel>
</UserControl>
